class NonMotorVehicle {
    protected String color;
    protected String brand;

    public NonMotorVehicle(String c, String b) {
        color = c;
        brand = b;
    }

    public abstract void productIntroduction();
}

class Bicycle extends NonMotorVehicle {
    private int seats;

    public Bicycle(String c, String b, int s) {
        super(c, b);
        seats = s;
    }

    @Override
    public void productIntroduction() {
        System.out.println("这是一辆" + color + "的" + brand + "自行车，有" + seats + "个座位。");
    }
}

class Tricycle extends NonMotorVehicle {
    private int wheels;

    public Tricycle(String c, String b, int w) {
        super(c, b);
        wheels = w;
    }

    @Override
    public void productIntroduction() {
        System.out.println("这是一辆" + color + "的" + brand + "三轮车，有" + wheels + "个轮子。");
    }
}

class ElectricVehicle extends NonMotorVehicle {
    private int battery;

    public ElectricVehicle(String c, String b, int bat) {
        super(c, b);
        battery = bat;
    }

    @Override
    public void productIntroduction() {
        System.out.println("这是一辆" + color + "的" + brand + "电动车，电量为" + battery + "。");
    }
}

public class Main {
    public static void main(String[] args) {
        Bicycle bicycle = new Bicycle("红色", "永久", 1);
        Tricycle tricycle = new Tricycle("蓝色", "凤凰", 3);
        ElectricVehicle electricVehicle = new ElectricVehicle("黑色", "小牛", 80);

        bicycle.productIntroduction();
        tricycle.productIntroduction();
        electricVehicle.productIntroduction();
    }
}